package com.lagou.edu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author caiwei
 * @date 2020-11-26 22:06
 */
@SpringBootApplication
@EntityScan("com.lagou.pojo")
@EnableDiscoveryClient// 开启注册中心客户端 （通用型注解，比如注册到Eureka、Nacos等）
                        //说明：从SpringCloud的Edgware版本开始，不加注解也ok，但是建议大家加上
public class ServerCode8081Application {

    public static void main(String[] args) {
        SpringApplication.run(ServerCode8081Application.class,args);
    }
}
